<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<title>NicoFox Player</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="swfobject.js"></script>
		<script type="text/javascript">

if ("createEvent" in document) {
  var element = document.createElement("NicoFoxEvent");
  element.setAttribute("attribute1", "foobar");
  element.setAttribute("attribute2", "hello world");
  document.documentElement.appendChild(element);

  var evt = document.createEvent("Events");
  evt.initEvent("NicoFoxEvent", true, false);
  element.dispatchEvent(evt);
  var video_file = element.getAttribute('video_file');
  var comment_file = element.getAttribute('comment_file');
  swfobject.embedSWF('breezevideo_player.swf', "myContent", "520", "470", "9.0.0", "expressInstall.swf", {
    videoFile: encodeURI(video_file),
    /* Without encodeURI works in IE but not Firefox */
    commentFile: encodeURI(comment_file),
  }, {allowFullScreen: 'true'});
}
		</script>
	</head>
	<body style="margin:0; padding: 0;">
		<div id="myContent">
			<h1>Alternative content</h1>
			<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
		</div>
	</body>
</html>

